﻿using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;

namespace QuailDashboard.View.Web
{
    [DataContract]
    public class LoadTestRunData
    {
        [DataMember]
        public string Url { get; set; }

        [DataMember]
        public DateTime StartTime { get; set; }

        [DataMember]
        public DateTime? FinishTime { get; set; }

        [DataMember]
        public List<LoadTestRunDetail> Details { get; set; }
    }

    [DataContract]
    public class LoadTestRunDetail
    {
        [DataMember]
        public DateTime StartTime { get; set; }

        [DataMember]
        public int MsToFirstByte { get; set; }

        [DataMember]
        public int MsTotal { get; set; }

        [DataMember]
        public int Size { get; set; }

        [DataMember]
        public int StatusCode { get; set; }
    }
}